package com.zpark.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * @PackageName: com.zpark.listener
 * @ClassName: Demo01Listener
 * @Description:
 * @author: RZS
 * @date: 2023/5/11  10:01
 */
@WebListener
public class Demo01Listener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("请求对象销毁");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("请求对象创建");
    }
}
